package com.shandiangou.crm.service.impl;


import com.shandiangou.crm.dao.MarketDao;
import com.shandiangou.crm.model.HongbaoLog;
import com.shandiangou.crm.service.MarketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 营销操作业务层
 */
@Service
public class MarketServiceImpl implements MarketService {

    @Autowired
    private MarketDao marketDao;

    @Override
    public int insert(HongbaoLog hongbaoLog) {
        return marketDao.insert(hongbaoLog);
    }

    @Override
    public int countHongbaoByUserToday(Long userId){
        return marketDao.countHongbaoByUserToday(userId);
    }
}
